<div class="row" xmlns:th="http://www.w3.org/1999/xhtml">
    <div class="col-md-12">
        <!-- BEGIN SAMPLE TABLE PORTLET-->
        <div class="data-div">
            <div class="widget collapsed " style="margin-bottom:5px;">
                <div class="widget-header ">
                    <span class="widget-caption">数据列表</span>

                    <form  role="form" onsubmit="return false;" id="form_data_table_cur_user_commission_get_log_list_1">
                        <input  type="hidden" name="uid" th:value="${uid}"/>
                        <div class="widget-buttons">
                            提现状态:<select name="payStatus" id="payStatus"  style="width:160px;margin-right:10px;padding: 3px;" >
                            <option value="">--全部--</option>
                            <option value="-1">--失败--</option>
                            <option value="0">--已申请--</option>
                            <option value="2">--已完成--</option>
                        </select>
                        </div>

                        <div class="widget-buttons">
                            <button href="javascript:;" class="btn btn-blue btn-xs search"  data-title="查询" data-form="true" onclick="javascript:loadMyData();">查询</button>
                        </div>
                    </form>

                </div>
            </div>

            <div class="widget no-header ">

                <div class="widget-body">
                    <table class="table table-condensed table-bordered table-hover " id="data_table_cur_user_commission_get_log_list_1">
                    </table>

                </div>
            </div>

        </div>
        <!-- END SAMPLE TABLE PORTLET-->
    </div>
</div>
<script type="text/javascript">

    $(document).ready(function() {

        //look-up 查询条件 会员
        Select2Ex.handleForm4select2({target:$("#form_data_table_cur_user_commission_get_log_list_1")});

        TableAjax.init('data_table_cur_user_commission_get_log_list_1',{
            sAjaxSource: "commission_get_log/cur_user_list",
            aaSorting: [
                [0, "asc" ]
            ], // 需要自定义
            uxDataTitle:"null",
            uxCheckable:false,
            uxCloseScroll:true,
            uxDrapable:false,
            aoColumns: [
                {sTitle:'ID',  mData: "id"},
                {sTitle:'提现金额',  mData: "totAmount",mRender:function (data,d,all) {
                        return (all.totAmount/100).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,');
                }},
                {sTitle:'手续费',  mData: "handFee",mRender:function (data,d,all) {
                        return (all.handFee/100).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,');
                }},
                {sTitle:'实际到账金额',  mData: "totAmountTrue",mRender:function (data,d,all) {
                        return (all.totAmountTrue/100).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,');
                 }},
                {sTitle:'提现状态',  mData: "payStatus",
                    mRender:function(data,d,all){
                        var status = "";
                        if(all.payStatus==-1){status="失败";}
                        if(all.payStatus==0){status="已申请";}
                        if(all.payStatus==2){status="已完成";}
                        return status;
                    }
                },
                {sTitle:'申请时间',  mData: "logTime",
                    mRender:function(data,d,all){
                        return all.logTimeStr;
                    }
                },

                // {sTitle:'操作',
                //     mData: "id" ,
                //     mRender:function(data,d,all){
                //         if (all.payStatus==0){
                //             return '<a class="blue-stripes" style="margin:20px" data-title="提现打款" data-handler="MODAL" href="user/commission_pay_page?id='+all.id+'" modal-size="820px">提现打款</a>';
                //         }else{
                //             return "";
                //         }
                //     }
                // }
            ]

        });

    });

</script>